package org.objective.service;

import org.common.service.Service;
import org.objective.base.BaseFieldInfo;
import org.objective.base.BaseObjectInfo;
import org.objective.base.BaseType;
import org.objective.base.BaseTypeInfo;
import org.objective.dal.loader.LoaderServiceProvider;

/**
 *
 * @author gus
 */
@Service(serviceProvider = LoaderServiceProvider.class)
public interface Loader
{
    public Boolean existType(BaseType type) throws Exception;

    public BaseFieldInfo getField(long fieldId) throws Exception;

    public BaseObjectInfo getObject(long id) throws Exception;

    public BaseTypeInfo getType(long id) throws Exception;

    public long[] loadFieldIDList(long id) throws Exception;
}
